package com.xfc.school.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xfc.school.domain.ScStudent;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xfc.school.domain.vo.CourserListVO;
import com.xfc.school.domain.vo.ScStudentCourseVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 学生信息Mapper接口
 * 
 * @author lcj
 * @date 2021-12-05
 */
public interface ScStudentMapper  extends BaseMapper<ScStudent> {

    /**
     * 查询学生课程
     * @return
     */
   IPage<ScStudentCourseVO> getStudentCourse(Page page, @Param("list")List<String> list,@Param("type") Integer type);

    /**
     *  查询我的列表课程
     * @param list 学生id
     * @param startTime 开始时间
     * @param endTime 结束时间
     * @return
     */
   List<CourserListVO> getHomeCourseList(@Param("list")List<String> list,@Param("startTime")String startTime,@Param("endTime")String endTime);
}
